package com.cykj.v_m_sprintboot.serviceImpl;

import com.cykj.v_m_sprintboot.bean.TbOut;
import com.cykj.v_m_sprintboot.mapper.TbOutMapper;
import com.cykj.v_m_sprintboot.service.TbOutService;
import org.apache.ibatis.session.RowBounds;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TbOutServiceImpl implements TbOutService {
    @Autowired
    private TbOutMapper tbOutMapper;

    @Override
    public List<TbOut> outGetSupplier(int warehouseId) {
        return tbOutMapper.outGetSupplier(warehouseId);
    }

    @Override
    public List<TbOut> getInputWarehouseName() {
        return tbOutMapper.getInputWarehouseName();
    }

    @Override
    public List<TbOut> outGtGoodsType(TbOut tbOut) {
        return tbOutMapper.outGtGoodsType(tbOut);
    }

    @Override
    public List<TbOut> OutGetGoodsName(TbOut tbOut) {
        return tbOutMapper.OutGetGoodsName(tbOut);
    }

    @Override
    public int outGetGoodsNum(TbOut tbOut) {
        return tbOutMapper.outGetGoodsNum(tbOut);
    }

    @Override
    public List<TbOut> selectOperator(int warehouseStateId) {
        return tbOutMapper.selectOperator(warehouseStateId);
    }

    @Override
    public boolean addOutData(TbOut tbOut) {
        return tbOutMapper.addOutData(tbOut);
    }

    @Override
    public boolean updateInputNum(TbOut tbOut) {
        return tbOutMapper.updateInputNum(tbOut);
    }

    @Override
    public int count(TbOut tbOut) {
        return tbOutMapper.count(tbOut);
    }

    @Override
    public List<TbOut> outInf(TbOut tbOut, RowBounds row) {
        return tbOutMapper.outInf(tbOut,row);
    }

    @Override
    public boolean delOut(TbOut tbOut) {
        return tbOutMapper.delOut(tbOut);
    }

    @Override
    public double countTbWarehouseListInf(TbOut tbOut) {
        return tbOutMapper.countTbWarehouseListInf(tbOut);
    }

    @Override
    public boolean updateTbWarehouseListInfNum(TbOut tbOut) {
        return tbOutMapper.updateTbWarehouseListInfNum(tbOut);
    }

    @Override
    public boolean updateWarehouseTime(TbOut tbOut) {
        return tbOutMapper.updateWarehouseTime(tbOut);
    }
}
